package com.taoyuan.hotel.service.intf;

import com.taoyuan.hotel.entity.Hgoods;
import com.taoyuan.hotel.vo.PageBean;
import com.taoyuan.hotel.vo.R;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface HgoodsService {
    R save(Hgoods hgoods);

    List<Hgoods> all();

    R del(int id);

    R update(Hgoods hgoods);

    PageBean selectAny(String name, String type, int page, int limit);

    R delBatch(int[] ids);

    R saveBatch(MultipartFile file) throws IOException;
}
